<!DOCTYPE html>
<!--
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/EmptyPHPWebPage.php to edit this template
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <style>
            .mydiv{
                border: 1px solid blue;
                border-radius: 50%;
                background-color: rgb(10,20,30);
                float: left;
            }
        </style>
    </head>
    <body>
        <?php
        // c表示圆的数量 h表示第一个圆环的直径 s表示每次递增的大小
        foreach ($_GET as $k=>$v){
            echo "<br/>".$k."-->".$v;
        }
        echo "<hr/>";
        // put your code here
        $count=$_GET["c"];
        $index=0;
        $step=$_GET["s"];
        $start_height=$_GET["h"];
        for(;$index<$count;$index++){
            $height=$start_height+$index*$step;
            $width=$start_height+$index*$step;
            $c1=10+10*$index;
            $c2=10+30*$index;
            $c3=10+40*$index;
            $c1=$c1%225;$c2=$c2%225;$c3=$c3%225;
            echo "<div class=\"mydiv\" style=\"width:${width}px;"
            . "height:${height}px;"
            . "background-color: rgb(${c1},${c2},${c3})\"></div>\n";
        }
        ?>
    </body>
</html>
